package com.stylefeng.guns.modular.system.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author junz123
 * @since 2018-04-23
 */
@TableName("bus_prd_trace_history")
public class BusPrdTraceHistory extends Model<BusPrdTraceHistory> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value="ID", type= IdType.UUID)
    private String id;
    /**
     * 批次编号
     */
    @TableField("PRD_TRACE_ID")
    private String prdTraceId;
    /**
     * 追溯码
     */
    @TableField("PRD_TRACE_NO")
    private String prdTraceNo;
    /**
     * 追溯查询时间
     */
    @TableField("TRACE_TIME")
    private Date traceTime;
    /**
     * 追随查询位置
     */
    @TableField("TRACE_ADDRESS")
    private String traceAddress;
    /**
     * 当前查询次数
     */
    @TableField("TRACE_CUR_COUNT")
    private Integer traceCurCount;
    /**
     * 产品编号
     */
    @TableField("PRD_ID")
    private String prdId;
    /**
     * 所属企业编号
     */
    @TableField("COM_ID")
    private String comId;
    @TableField("STATUS")
    private Integer status;
    /**
     * 创建时间
     */
    @TableField("CREATETIME")
    private Date createtime;
    @TableField("VERSION")
    private Integer version;
    /**
     * 维护人
     */
    @TableField("MAINTAINER")
    private String maintainer;
    /**
     * 删除标志
     */
    @TableField("DEL_FLAG")
    private Integer delFlag;
    @TableField("PRD_SELL_AREA")
    private String prdSellArea;
    @TableField("DATADATE")
    private Integer datadate;
    @TableField("PRD_TRACE_ENCRYPT_NO")
    private String encryptPrdTraceNo;

    public String getPrdSellArea() {
        return prdSellArea;
    }

    public void setPrdSellArea(String prdSellArea) {
        this.prdSellArea = prdSellArea;
    }

    public Integer getDatadate() {
        return datadate;
    }

    public void setDatadate(Integer datadate) {
        this.datadate = datadate;
    }

    public String getEncryptPrdTraceNo() {
        return encryptPrdTraceNo;
    }

    public void setEncryptPrdTraceNo(String encryptPrdTraceNo) {
        this.encryptPrdTraceNo = encryptPrdTraceNo;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPrdTraceId() {
        return prdTraceId;
    }

    public void setPrdTraceId(String prdTraceId) {
        this.prdTraceId = prdTraceId;
    }

    public String getPrdTraceNo() {
        return prdTraceNo;
    }

    public void setPrdTraceNo(String prdTraceNo) {
        this.prdTraceNo = prdTraceNo;
    }

    public Date getTraceTime() {
        return traceTime;
    }

    public void setTraceTime(Date traceTime) {
        this.traceTime = traceTime;
    }

    public String getTraceAddress() {
        return traceAddress;
    }

    public void setTraceAddress(String traceAddress) {
        this.traceAddress = traceAddress;
    }

    public Integer getTraceCurCount() {
        return traceCurCount;
    }

    public void setTraceCurCount(Integer traceCurCount) {
        this.traceCurCount = traceCurCount;
    }

    public String getPrdId() {
        return prdId;
    }

    public void setPrdId(String prdId) {
        this.prdId = prdId;
    }

    public String getComId() {
        return comId;
    }

    public void setComId(String comId) {
        this.comId = comId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getMaintainer() {
        return maintainer;
    }

    public void setMaintainer(String maintainer) {
        this.maintainer = maintainer;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BusPrdTraceHistory{" +
        "id=" + id +
        ", prdTraceId=" + prdTraceId +
        ", prdTraceNo=" + prdTraceNo +
        ", traceTime=" + traceTime +
        ", traceAddress=" + traceAddress +
        ", traceCurCount=" + traceCurCount +
        ", prdId=" + prdId +
        ", comId=" + comId +
        ", status=" + status +
        ", createtime=" + createtime +
        ", version=" + version +
        ", maintainer=" + maintainer +
        ", delFlag=" + delFlag +
        "}";
    }
}
